home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene 96
/
Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso
/
misc
/
coding
/
e_os208
/
exampl12
/
eosc.pas
< prev
Wrap
Pascal/Delphi Source File
|
1996-08-01
|
2KB
|
52 lines
{$m 8096,0,2048}
uses dos;
var
p : dirstr;
f : namestr;
e : extstr;
begin
writeln ('E.O.S. compiler v1.0 [wlk/abc]');
if paramstr(1)='' then begin
writeln ('eosc <filename> -param ');
writeln (' -n normal compile with no music');
writeln (' -m with da music compiling');
writeln (' -d with da debugger compiler ');
halt(0);
end;
fsplit (paramstr(1),p,f,e);
if paramstr(2)='-n' then
begin
SwapVectors;
exec ('c:\ta\tasm.exe',f+'.asm');
exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eoslite '+f+','+f+' /3/x');
SwapVectors;
end else
if paramstr(2)='-m' then
begin
SwapVectors;
exec ('c:\ta\tasm.exe',f+'.asm');
exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eos ..\resource\diamond '+f+','+f+' /3/x');
SwapVectors;
end else
if paramstr(2)='-d' then
begin
SwapVectors;
exec ('c:\ta\tasm.exe',f+'.asm');
exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eoslite ..\resource\debug '+f+','+f+' /3/x');
SwapVectors;
end else
if paramstr(2)='' then
begin
SwapVectors;
exec ('c:\ta\tasm.exe',f+'.asm');
exec ('c:\ta\tlink.exe','..\resource\kernel ..\resource\eoslite '+f+','+f+' /3/x');
SwapVectors;
end;
end.